<template>
	<fu-popup v-model="show" mode="bottom" :safe-area-inset-bottom="true" :border-radius="24">
		<view class="padding  bg-white">
			<view class="flex justify-between padding-bottom">
				<view class="flex-sub text-center text-333  fu-fs32 text-bold  ">
					<text class="">{{ title }}</text>
				</view>
				<view class="close-box" @tap="close"><text class="cuIcon-close"></text></view>
			</view>
			<scroll-view class="container" scroll-y>
				<!-- <text>可领取优惠券</text> -->
				<view class="xs_line_height" v-if='!info'>{{i18n['无']}}</view>
				<!-- <jyf-parser :html="info" v-else></jyf-parser> -->
				<view class="xs_line_height" v-else v-html="info"></view>
				<!-- <block v-for="(item, index) in info" :key="index"></block> -->
			</scroll-view>
		</view>
	</fu-popup>
</template>

<script>
export default {
	props: {
		info: {
			type: String
		},
		title: {
			type: String
		}
	},
	data() {
		return {
			show: false,
			curTab: 0
		};
	},
	watch: {},
	methods: {
		open() {
			this.show = true;
		},
		close() {
			this.show = false;
		}
	},
	mounted() {
		console.log(this.info);
	}
};
</script>

<style lang="scss" scoped>
.xs_line_height {
	line-height: 1.6;
}
.container {
	height: 600rpx;
}

.border {
	border: 1rpx solid #fbefc7;
	background: #fbefc7;
}
.xs_title {
	font-size: 36upx;
	font-weight: bold;
	color: #333333;
	display: flex;
	align-items: center;
	justify-content: center;
	.xs_text {
		padding: 0 18upx;
	}
}
</style>
